import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      theme: ThemeData(primarySwatch: Colors.grey),
      home: Scaffold(
        appBar:AppBar(
            backgroundColor: Color.fromRGBO(51, 51, 51, 1),
            titleSpacing: 0.0,
            title:Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                FlatButton(
                  materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
                  child: Row(
                    children: [
                      Icon(Icons.arrow_back_ios,color: Colors.white,),
                      Text('返回',style: TextStyle(color: Colors.white,fontSize: 16),)
                    ],
                  ),
                  onPressed: (){
                    Navigator.pop(context);//返回上一页
                  },
                ),
                //完成跳转页面
                Container(
                  child: Row(children: [
                    Text('支付成功',style: TextStyle(fontSize: 16,color: Colors.white,),),
                    SizedBox(width: 25,)
                    ],
                  ),
                ),
                IconButton(icon: Icon(Icons.more_horiz),color: Colors.white,
                    onPressed: (){})
              ],
            )
        ),
        body: Column(
          children: <Widget>[
            SizedBox(
              height: 50,
            ),
            Row(
              mainAxisAlignment:MainAxisAlignment.spaceEvenly,
              children: <Widget>[
                Icon(
                    Icons.check_circle_outline,
                    size: 100,color: Colors.grey,
                ),
              ],
            ),
            SizedBox(
              height: 30,
            ),
            Row(
              mainAxisAlignment:MainAxisAlignment.spaceEvenly,
              children: <Widget>[
               Text("支付成功",
               ),
              ],
            ),
            SizedBox(
              height: 30,
            ),
            MaterialButton(
              color: Colors.grey,
              textColor: Colors.white,
              minWidth: 200,
              child:Text('完成'),
              onPressed: () {
              },
            )
          ],
        ),
      ),
    );
  }
}
